﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace UITLibraryManagement.ViewModel
{
    class ThemDocGiaViewModel : ViewModelBase, IDataErrorInfo
    {
        private DocGiaViewModel _docGiaViewModel;
        private IDocGiaRepository _docgiaRepository;

        public DocGiaViewModel DocGiaViewModel
        {
            get { return _docGiaViewModel; }
            set { _docGiaViewModel = value; }
        }


        public ThemDocGiaViewModel()
        {
            _docgiaRepository = App.GetInstance<IDocGiaRepository>();
            DOCGIA docgia = _docgiaRepository.GetAll().First();
            _docGiaViewModel = new DocGiaViewModel(docgia);
        }



        public string Error
        {
            get { throw new NotImplementedException(); }
        }

        public string this[string columnName]
        {
            get { throw new NotImplementedException(); }
        }
    }
}
